/**
 * TODO add initializer to ensure variables are filled
 */
package net.yters.model.agents.actuators;

import java.util.TreeMap;

import net.yters.model.agents.Agent;
import net.yters.model.agents.DeciderAgent;
import net.yters.util.Box;

abstract public class ActuatorAgent extends Agent {
	private static final long serialVersionUID = -5849673968839928551L;
	
	public DeciderAgent f_ownerAgent = null;
	public Box f_fired = new Box(new Double(0));
	public TreeMap<String, Box> f_parameters = new TreeMap<String, Box>();

	public ActuatorAgent() {
		addBoxedParameter("fired", f_fired);
	}
	
	public void addBoxedParameter(String name, Box value) {
		addBoxedState(name, value);
		
		f_parameters.put(qualifyField(name), value);
	}
}